Optimal. Leaf size=24 \[ \frac {b \text {ArcTan}(\sinh (c+d x))}{d}+\frac {a \sinh (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {4130, 3855}
\begin {gather*} \frac {a \sinh (c+d x)}{d}+\frac {b \text {ArcTan}(\sinh (c+d x))}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3855
Rule 4130
Rubi steps
\begin {align*} \int \cosh (c+d x) \left (a+b \text {sech}^2(c+d x)\right ) \, dx &=\frac {a \sinh (c+d x)}{d}+b \int \text {sech}(c+d x) \, dx\\ &=\frac {b \tan ^{-1}(\sinh (c+d x))}{d}+\frac {a \sinh (c+d x)}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 35, normalized size = 1.46 \begin {gather*} \frac {b \text {ArcTan}(\sinh (c+d x))}{d}+\frac {a \cosh (d x) \sinh (c)}{d}+\frac {a \cosh (c) \sinh (d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.50, size = 24, normalized size = 1.00
method | result | size |
derivativedivides | \(\frac {a \sinh \left (d x +c \right )+2 b \arctan \left ({\mathrm e}^{d x +c}\right )}{d}\) | \(24\) |
default | \(\frac {a \sinh \left (d x +c \right )+2 b \arctan \left ({\mathrm e}^{d x +c}\right )}{d}\) | \(24\) |
risch | \(\frac {a \,{\mathrm e}^{d x +c}}{2 d}-\frac {{\mathrm e}^{-d x -c} a}{2 d}+\frac {i b \ln \left ({\mathrm e}^{d x +c}+i\right )}{d}-\frac {i b \ln \left ({\mathrm e}^{d x +c}-i\right )}{d}\) | \(63\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 28, normalized size = 1.17 \begin {gather*} -\frac {2 \, b \arctan \left (e^{\left (-d x - c\right )}\right )}{d} + \frac {a \sinh \left (d x + c\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 93 vs.
\(2 (24) = 48\).
time = 0.37, size = 93, normalized size = 3.88 \begin {gather*} \frac {a \cosh \left (d x + c\right )^{2} + 2 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + a \sinh \left (d x + c\right )^{2} + 4 \, {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \arctan \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right )\right ) - a}{2 \, {\left (d \cosh \left (d x + c\right ) + d \sinh \left (d x + c\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \operatorname {sech}^{2}{\left (c + d x \right )}\right ) \cosh {\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 36, normalized size = 1.50 \begin {gather*} \frac {4 \, b \arctan \left (e^{\left (d x + c\right )}\right ) + a e^{\left (d x + c\right )} - a e^{\left (-d x - c\right )}}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.44, size = 62, normalized size = 2.58 \begin {gather*} \frac {2\,\mathrm {atan}\left (\frac {b\,{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\sqrt {d^2}}{d\,\sqrt {b^2}}\right )\,\sqrt {b^2}}{\sqrt {d^2}}-\frac {a\,{\mathrm {e}}^{-c-d\,x}}{2\,d}+\frac {a\,{\mathrm {e}}^{c+d\,x}}{2\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________